// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Widgets/SCompoundWidget.h"
#include "Widgets/Views/SListView.h"

/**
 * 
 */
class SPakPlatformsView : public SCompoundWidget
{
public:
	SLATE_BEGIN_ARGS(SPakPlatformsView)
	{}
	SLATE_END_ARGS()

	/** Constructs this widget with InArgs */
	void Construct(const FArguments& InArgs);

	void AddSelectPlatform(const FString& InPlatform);

	void RemoveSelectPlatform(const FString& InPlatform);

	const TArray<FString>& GetAllSelectPlatforms();

	void ClearAllSelectPlatforms();

protected:

	TSharedRef<ITableRow> HandlePlatformViewGenerateRow(TSharedPtr<FString> PlatformName, const TSharedRef<STableViewBase>& OwnerTable);

protected:

	TArray<TSharedPtr<FString>> PlatformList;

	TSharedPtr<SListView<TSharedPtr<FString>>> PlatformsView;

	TArray<FString> SelectPlatforms;
};
